<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="./assets/mui/css/mui.min.css">
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="assets/fontAwesome/css/font-awesome.min.css">
    <script src="./assets/mui/js/mui.min.js"></script>
    <title>Document</title>
    <style>
        .car-list .car-title{
            font-size: 16px;
            color: #333;
            line-height: 24px;
        }
        .car-info{
            font-size: 14px;
            color: #aaa;
        }
        .car-info .new{
            font-size: 16px;
            color: #f00;
            padding-right: 10px;
        }
        .car-info .old{
            text-decoration: line-through;
        }
        .total{
            font-size: 18px;
            color: #333;
            font-weight: bold;
            padding: 10px;
        }
        #info .size span{
            display: inline-block;
            padding: 5px;
            border: 1px solid #ccc;
            margin: 0 5px 10px 0; 
        }
        #info .size span.active{
            background: #f00;
            color: #fff;
        }
    </style>
</head>
<body>
    <!-- 头部 -->
	<header class="mui-bar mui-bar-nav my-header">
        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		<h1 class="mui-title">购物车</h1>
    </header>
    <!-- 底部 -->
	<nav class="mui-bar mui-bar-tab my-footer">
		<a class="mui-tab-item" href="home.html">
			<span class="mui-icon mui-icon-home"></span>
			<span class="mui-tab-label">首页</span>
		</a>
		<a class="mui-tab-item" href="catagory.html">
			<span class="mui-icon mui-icon-bars"></span>
			<span class="mui-tab-label">分类</span>
		</a>
		<a class="mui-tab-item mui-active" href="cart.html">
			<span class="mui-icon fa fa-shopping-cart"></span>
			<span class="mui-tab-label">购物车</span>
		</a>
		<a class="mui-tab-item  " href="user.html">
			<span class="mui-icon mui-icon-person"></span>
			<span class="mui-tab-label">会员中心</span>
		</a>
    </nav>
    
	<div class="mui-content">
        
        <ul class="mui-table-view car-list" >
            
            
        </ul>
        <div class="total">
            订单总额:<span class="money">0</span>元
        </div>
        
	</div>
</body>
<script src="assets/zepto/zepto.min.js"></script>
<script src="js/public.js"></script>
<script src="assets/artTemplate/template-native.js"></script>
<script src="js/car.js"></script>
<!-- 购物车列表渲染 -->
<script id="carTpl" type="text/template">
    <%for(var i = 0;i<result.length;i++){%>
        <li class="mui-table-view-cell mui-transitioning mui-media">
            <div class="mui-slider-right mui-disabled dele" >
                <span class="mui-btn mui-btn-primary edit-btn" 
                    data-id="<%=result[i].id %>">编辑</span>
                <span class="mui-btn mui-btn-red deleteCar" data-id="<%=result[i].id %>">删除</span>
            </div>
            <div class="mui-slider-handle">
                <a href="javascript:;">
                    <img class="mui-media-object mui-pull-left" src="images/banner1.png">
                    <div class="mui-media-body car-title">
                        <%=result[i].proName%>
                        <div class="mui-row car-info">
                            <div class="mui-col-sm-6">
                                <input type="checkbox" class="check">
                                <span class="new">¥<%=result[i].price%></span>
                                <span class="old">¥<%=result[i].oldPrice%></span>
                            </div>
                            <div class="mui-col-sm-4">
                                鞋码:<%=result[i].size%>
                            </div>
                            <div class="mui-col-sm-2">
                                x<%=result[i].num%>双
                            </div>
                        </div>
                        
                    </div>
                </a>
            </div>
        </li>
    <%}%>
</script>
<script type="text/template" id="alertOpen">
    
</script>
</html>